//
//  XFYAdaptiveView.m
//  SDKSample
//
//  Created by 小肥羊 on 15/7/10.
//  Copyright (c) 2015年 Zhu‘s Game House. All rights reserved.
//

#import "XFYAdaptiveView.h"

@implementation XFYAdaptiveView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (id)initWithFrame:(CGRect)frame
{
    NSArray *nibs = [[NSBundle mainBundle]loadNibNamed:@"XFYAdaptiveView" owner:nil options:nil];
    self = [nibs lastObject];
    if (self) {
        self.frame = frame;
        [self.showView.layer setCornerRadius:8.0];
        [self.closeButton.layer setCornerRadius:self.closeButton.frame.size.height/2];
    }
    return self;
}

- (IBAction)clickBack:(id)sender {
    //[self removeFromSuperview];
}
- (IBAction)closeView:(UIButton *)sender {
    [self removeFromSuperview];
}

@end
